home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: COPROCESSOR EMULATOR..
- Date: 25 Mar 1996 12:36:06 +0100
- Organization: dis-
- Message-ID: <4j60f6$t3m@serpens.rhein.de>
- References: <4ipcd9$24l@sun1000.pwr.wroc.pl> <19960320.3FE920.11D7C@ao091.du.pipex.com> <66095638@jojo.IN-Berlin.DE> <4itm4i$28d@serpens.rhein.de> <66095651@jojo.IN-Berlin.DE>
- NNTP-Posting-Host: serpens.rhein.de
-
- "Bernhard Graf" <graf@jojo.IN-Berlin.DE> writes:
-
- >In article <4itm4i$28d@serpens.rhein.de>: "Re: COPROCESSOR EMULATOR.."
- >Michael van Elst <mlelstv@serpens.rhein.de> wrote:
- >MvE> "Bernhard Graf" <graf@jojo.IN-Berlin.DE> writes:
- >MvE>
- >MvE> >Remember that for every task switch you have to store ALL registers of
- >MvE> >the old task and restore ALL registers for the next active task.
- >MvE>
- >MvE> That's what the mathieee libraries have to solve for non-standard
- >MvE> coprocessors. They hook into the tasks's dispatch vectors.
-
- >If a task is interupted by the MT-dispatcher while running through a
- >mathieee-library-routine, it also has to store only this tasks
- >FPU-registers and reload them, when regaining processor-control.
-
- That is the same that a FPU emulator would have to do.
-
- >Those non-standard FPU-registers are not defined after leaving the
- >ieee-library-routine.
-
- No FPU register is defined at all.
-
- >This is an easy programming task, if you know, how to hook into the
- >dispatcher.
-
- This is documented, although it lacks some decent arbitration
- mechanism and it works on a per-task basis and not globally.
-
- >I am still convinced that a FPU-emulator under Amiga-OS is only
- >possible, if you start it at boot-time before multitasking is running.
-
- Obviously you cannot use the FPU in tasks that were started before the
- emulator is set up, but the emulator can wedge into AddTask() and create
- default switch and launch functions. I don't see a problem here.
-
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-